import textwrap
from kdot import caucutt

if __name__ == "__main__":
  N = 100;
  T = 30;

  world = caucutt.World(N)
  # world.run(50)
  for t in range(T):
    world.step()
    s = "% skilled = " + str(100 * len(world.firm.skilled_workers) / N)
    s += "; Ws = $" + str(round(world.firm.skilled_wage, 2))
    s += "; Wu = $" + str(round(world.firm.unskilled_wage, 2))
    s += "; Rs = " + str(round(100 * world.firm.learner.best_rate_skilled))
    s += "; Ru = " + str(round(100 * world.firm.learner.best_rate_unskilled))
    print s

    if world.firm.skilled_wage == 0:
      break
